.class public Les/mg;
.super Ljava/lang/Object;
.source "AppFolderInfoManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/mg$m;,
        Les/mg$r;,
        Les/mg$o;,
        Les/mg$s;,
        Les/mg$n;,
        Les/mg$p;,
        Les/mg$t;,
        Les/mg$q;,
        Les/mg$l;,
        Les/mg$k;
    }
.end annotation


# static fields
.field static o:Les/mg;

.field static p:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/mg$l;",
            ">;"
        }
    .end annotation
.end field

.field static final q:Ljava/lang/String;

.field static final r:Ljava/lang/String;

.field static final s:Ljava/lang/String;

.field static final t:Ljava/lang/String;


# instance fields
.field a:Landroid/database/sqlite/SQLiteDatabase;

.field b:Landroid/util/LruCache;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/LruCache<",
            "Ljava/lang/String;",
            "Les/mg$k;",
            ">;"
        }
    .end annotation
.end field

.field c:Landroid/util/LruCache;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/LruCache<",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field d:Landroidx/collection/LruCache;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/collection/LruCache<",
            "Ljava/lang/String;",
            "Landroid/graphics/drawable/Drawable;",
            ">;"
        }
    .end annotation
.end field

.field e:Les/mg$k;

.field f:Les/mg$k;

.field g:Ljava/util/concurrent/locks/ReentrantReadWriteLock;

.field h:Ljava/util/concurrent/locks/Lock;

.field i:Ljava/util/concurrent/locks/Lock;

.field final j:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Les/mg$n;",
            ">;>;"
        }
    .end annotation
.end field

.field k:I

.field l:Landroid/database/sqlite/SQLiteDatabase;

.field m:Ljava/lang/Object;

.field n:Z


# direct methods
.method static constructor <clinit>()V
    .locals 6

    .line 1
    new-instance v0, Les/mg;

    invoke-direct {v0}, Les/mg;-><init>()V

    sput-object v0, Les/mg;->o:Les/mg;

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    const/16 v1, 0xb

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    sput-object v0, Les/mg;->p:Ljava/util/ArrayList;

    .line 3
    new-instance v1, Les/mg$l;

    const/4 v2, 0x0

    const-string v3, "/Android"

    const v4, 0x7f08071f

    invoke-direct {v1, v3, v4, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 4
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const/4 v3, 0x1

    const-string v4, "/dcim"

    const v5, 0x7f080721

    invoke-direct {v1, v4, v5, v3, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 5
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/download"

    const v5, 0x7f080722

    invoke-direct {v1, v4, v5, v3, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 6
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/.android_secure"

    const v5, 0x7f080720

    invoke-direct {v1, v4, v5, v3, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 7
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/Movies"

    const v5, 0x7f080724

    invoke-direct {v1, v4, v5, v3, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 8
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/Pictures"

    const v5, 0x7f080726

    invoke-direct {v1, v4, v5, v3, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 9
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/Video"

    const v5, 0x7f080728

    invoke-direct {v1, v4, v5, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 10
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/Music"

    const v5, 0x7f080725

    invoke-direct {v1, v4, v5, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const v4, 0x7f080723

    const-string v5, "/.estrongs"

    invoke-direct {v1, v5, v4, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 12
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v5, "/backups"

    invoke-direct {v1, v5, v4, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 13
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v5, "/esShare"

    invoke-direct {v1, v5, v4, v2, v2}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 14
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    new-instance v1, Les/mg$l;

    const-string v4, "/Ringtones"

    const v5, 0x7f080727

    invoke-direct {v1, v4, v5, v2, v3}, Les/mg$l;-><init>(Ljava/lang/String;IZZ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 15
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/android/pop/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/.app_icon_back"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Les/mg;->q:Ljava/lang/String;

    .line 16
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Les/mg;->r:Ljava/lang/String;

    .line 17
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/.folder_logo"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Les/mg;->s:Ljava/lang/String;

    .line 18
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/folder_app.db"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Les/mg;->t:Ljava/lang/String;

    return-void
.end method

.method constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    .line 3
    new-instance v1, Landroid/util/LruCache;

    const/16 v2, 0x200

    invoke-direct {v1, v2}, Landroid/util/LruCache;-><init>(I)V

    iput-object v1, p0, Les/mg;->b:Landroid/util/LruCache;

    .line 4
    new-instance v1, Landroid/util/LruCache;

    const/16 v2, 0x64

    invoke-direct {v1, v2}, Landroid/util/LruCache;-><init>(I)V

    iput-object v1, p0, Les/mg;->c:Landroid/util/LruCache;

    .line 5
    new-instance v1, Les/mg$c;

    invoke-direct {v1, p0, v2}, Les/mg$c;-><init>(Les/mg;I)V

    iput-object v1, p0, Les/mg;->d:Landroidx/collection/LruCache;

    .line 6
    new-instance v1, Les/mg$k;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Les/mg$k;-><init>(I)V

    iput-object v1, p0, Les/mg;->e:Les/mg$k;

    .line 7
    new-instance v1, Les/mg$k;

    const/4 v3, 0x5

    invoke-direct {v1, v3}, Les/mg$k;-><init>(I)V

    iput-object v1, p0, Les/mg;->f:Les/mg$k;

    .line 8
    new-instance v1, Ljava/util/concurrent/locks/ReentrantReadWriteLock;

    invoke-direct {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V

    iput-object v1, p0, Les/mg;->g:Ljava/util/concurrent/locks/ReentrantReadWriteLock;

    .line 9
    invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;

    move-result-object v1

    iput-object v1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    .line 10
    iget-object v1, p0, Les/mg;->g:Ljava/util/concurrent/locks/ReentrantReadWriteLock;

    invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;

    move-result-object v1

    iput-object v1, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    .line 11
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Les/mg;->j:Ljava/util/HashMap;

    .line 12
    iput v2, p0, Les/mg;->k:I

    .line 13
    new-instance v1, Ljava/util/LinkedList;

    invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V

    .line 14
    iput-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 15
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Les/mg;->m:Ljava/lang/Object;

    .line 16
    iput-boolean v2, p0, Les/mg;->n:Z

    return-void
.end method

.method static synthetic a(Landroid/graphics/BitmapFactory$Options;I)I
    .locals 0

    .line 1
    invoke-static {p0, p1}, Les/mg;->b(Landroid/graphics/BitmapFactory$Options;I)I

    move-result p0

    return p0
.end method

.method static synthetic a(Les/mg;)I
    .locals 0

    .line 3
    invoke-direct {p0}, Les/mg;->e()I

    move-result p0

    return p0
.end method

.method static synthetic a(Les/mg;Ljava/lang/String;)I
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 2
    invoke-direct {p0, p1}, Les/mg;->q(Ljava/lang/String;)I

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;I)I
    .locals 11

    .line 138
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    .line 139
    invoke-virtual {p0}, Les/mg;->c()V

    .line 140
    :cond_0
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_1

    return p2

    :cond_1
    const/4 v0, 0x0

    const/4 v1, 0x1

    new-array v4, v1, [Ljava/lang/String;

    const-string v2, "value"

    const/4 v10, 0x0

    aput-object v2, v4, v10

    new-array v6, v1, [Ljava/lang/String;

    aput-object p1, v6, v10

    .line 141
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->lock()V

    .line 142
    :try_start_0
    iget-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "config"

    const-string v5, "key=?"

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-virtual/range {v2 .. v9}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 143
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 144
    invoke-interface {v0, v10}, Landroid/database/Cursor;->getInt(I)I

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move p2, p1

    :cond_2
    if-eqz v0, :cond_3

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_0
    move-exception p1

    .line 145
    :try_start_1
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_3

    .line 146
    :goto_0
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 147
    :cond_3
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return p2

    :goto_1
    if-eqz v0, :cond_4

    .line 148
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 149
    :cond_4
    iget-object p2, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p2}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 150
    throw p1
.end method

.method private a(Landroid/content/pm/PackageInfo;)Ljava/lang/String;
    .locals 2

    .line 13
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 14
    sget-object v1, Les/mg;->r:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/ver/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p1, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p1, p1, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method static synthetic a(Les/mg;Ljava/io/File;)Ljava/lang/String;
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Les/mg;->a(Ljava/io/File;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Ljava/io/File;)Ljava/lang/String;
    .locals 5

    .line 172
    :try_start_0
    invoke-virtual {p1}, Ljava/io/File;->length()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Long;->intValue()I

    move-result v0

    .line 173
    new-array v1, v0, [B

    .line 174
    new-instance v2, Ljava/io/RandomAccessFile;

    const-string v3, "r"

    invoke-direct {v2, p1, v3}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 175
    invoke-virtual {v2, v1, p1, v0}, Ljava/io/RandomAccessFile;->read([BII)I

    .line 176
    invoke-virtual {v2}, Ljava/io/RandomAccessFile;->close()V

    .line 177
    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 178
    new-instance v2, Ljava/util/zip/InflaterInputStream;

    new-instance v3, Ljava/io/ByteArrayInputStream;

    invoke-direct {v3, v1}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-direct {v2, v3}, Ljava/util/zip/InflaterInputStream;-><init>(Ljava/io/InputStream;)V

    const/16 v1, 0x400

    new-array v3, v1, [B

    .line 179
    :goto_0
    invoke-virtual {v2, v3, p1, v1}, Ljava/util/zip/InflaterInputStream;->read([BII)I

    move-result v4

    if-lez v4, :cond_0

    .line 180
    invoke-virtual {v0, v3, p1, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0

    .line 181
    :cond_0
    invoke-virtual {v2}, Ljava/util/zip/InflaterInputStream;->close()V

    .line 182
    new-instance p1, Ljava/lang/String;

    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v1

    invoke-direct {p1, v1}, Ljava/lang/String;-><init>([B)V

    .line 183
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 184
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p1, 0x0

    :goto_1
    return-object p1
.end method

.method private a(I)V
    .locals 11

    const/4 v0, 0x1

    new-array v9, v0, [Ljava/lang/String;

    .line 202
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v10, 0x0

    aput-object p1, v9, v10

    new-array v3, v0, [Ljava/lang/String;

    const-string p1, "folder, package_name"

    aput-object p1, v3, v10

    .line 203
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "app_folder_map"

    const-string v4, "id=?"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v5, v9

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    const/4 v1, 0x0

    if-eqz p1, :cond_1

    .line 204
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 205
    invoke-interface {p1, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 206
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    move-object v0, v1

    .line 207
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    goto :goto_1

    :cond_1
    move-object v0, v1

    .line 208
    :goto_1
    invoke-direct {p0, v1, v0, v10}, Les/mg;->b(Ljava/lang/String;Ljava/lang/String;Z)V

    .line 209
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v0, "app_folder_map"

    const-string v1, "id=?"

    invoke-virtual {p1, v0, v1, v9}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    return-void
.end method

.method private a(IIIZ)V
    .locals 2

    .line 225
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 226
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string v1, "folder"

    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 227
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string p2, "package"

    invoke-virtual {v0, p2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    if-eqz p4, :cond_0

    const-string p1, "1"

    goto :goto_0

    :cond_0
    const-string p1, "0"

    :goto_0
    const-string p2, "user_define"

    .line 228
    invoke-virtual {v0, p2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 229
    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string p2, "deep"

    invoke-virtual {v0, p2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 230
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 p2, 0x0

    const-string p3, "folder_package_match_table"

    invoke-virtual {p1, p3, p2, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    return-void
.end method

.method private a(IIZ)V
    .locals 3

    const/4 v0, 0x3

    new-array v0, v0, [Ljava/lang/String;

    .line 223
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x0

    aput-object p1, v0, v1

    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x1

    aput-object p1, v0, p2

    if-eqz p3, :cond_0

    const-string p1, "1"

    goto :goto_0

    :cond_0
    const-string p1, "0"

    :goto_0
    const/4 p2, 0x2

    aput-object p1, v0, p2

    .line 224
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string p2, "folder_package_match_table"

    const-string p3, "folder=? and package=? and user_define=?"

    invoke-virtual {p1, p2, p3, v0}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    return-void
.end method

.method private a(ILjava/lang/String;Ljava/lang/String;III)V
    .locals 9

    const/4 p5, 0x1

    new-array v4, p5, [Ljava/lang/String;

    .line 185
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v8, 0x0

    aput-object v0, v4, v8

    new-array v2, p5, [Ljava/lang/String;

    const-string v0, "folder, package_name"

    aput-object v0, v2, v8

    .line 186
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v1, "app_folder_map"

    const-string v3, "id=?"

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual/range {v0 .. v7}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 187
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 188
    invoke-interface {v0, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 189
    invoke-interface {v0, p5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    :cond_0
    move-object v2, v1

    .line 190
    :goto_0
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    goto :goto_1

    :cond_1
    move-object v2, v1

    .line 191
    :goto_1
    invoke-direct {p0, v1, v2, v8}, Les/mg;->b(Ljava/lang/String;Ljava/lang/String;Z)V

    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/Object;

    .line 192
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v0, v8

    aput-object p2, v0, p5

    const/4 p1, 0x2

    aput-object p3, v0, p1

    const/4 p1, 0x3

    invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p4

    aput-object p4, v0, p1

    const/4 p1, 0x4

    invoke-static {p6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p4

    aput-object p4, v0, p1

    .line 193
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string p4, "INSERT OR REPLACE INTO app_folder_map (id,folder,package_name,version,select_rate) VALUES(?,?,?,?,?)"

    invoke-virtual {p1, p4, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 194
    invoke-direct {p0, p2, p3, v8}, Les/mg;->a(Ljava/lang/String;Ljava/lang/String;Z)V

    return-void
.end method

.method private a(Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V
    .locals 3

    .line 15
    invoke-direct {p0}, Les/mg;->g()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    .line 16
    invoke-direct {p0, p2}, Les/mg;->b(Landroid/content/pm/PackageInfo;)Z

    move-result v0

    if-nez v0, :cond_1

    sget-object v0, Les/mg;->r:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/util/f;->m(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 17
    :cond_0
    iget-object v0, p2, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-virtual {p0, v0}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 18
    iget-object v1, p2, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-static {p1, v1}, Lcom/estrongs/android/util/a;->a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 19
    sget-object v1, Landroid/graphics/Bitmap$CompressFormat;->PNG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v2, 0x64

    invoke-static {p1, v0, v1, v2}, Lcom/estrongs/android/util/c;->a(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/graphics/Bitmap$CompressFormat;I)Z

    .line 20
    invoke-direct {p0, p2}, Les/mg;->c(Landroid/content/pm/PackageInfo;)V

    :cond_1
    :goto_0
    return-void
.end method

.method private a(Les/mg$s;)V
    .locals 5

    .line 162
    invoke-interface {p1}, Les/mg$s;->b()I

    move-result v0

    .line 163
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "http://www.estrongs.com/console/service/app_folder?v="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "&t="

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Les/mg$s;->getType()I

    move-result v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 164
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/tmp/folder_app_update"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 165
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ".tmp"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 166
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "/tmp"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/fs/util/f;->m(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 167
    invoke-interface {p1}, Les/mg$s;->a()V

    return-void

    .line 168
    :cond_0
    new-instance v3, Lcom/estrongs/android/util/a0;

    invoke-direct {v3, v0}, Lcom/estrongs/android/util/a0;-><init>(Ljava/lang/String;)V

    .line 169
    invoke-virtual {v3, v2}, Lcom/estrongs/android/util/a0;->a(Ljava/lang/String;)V

    .line 170
    new-instance v0, Les/mg$g;

    invoke-direct {v0, p0, v2, v1, p1}, Les/mg$g;-><init>(Les/mg;Ljava/lang/String;Ljava/lang/String;Les/mg$s;)V

    invoke-virtual {v3, v0}, Lcom/estrongs/android/util/a0;->a(Lcom/estrongs/android/util/a0$c;)V

    .line 171
    invoke-virtual {v3}, Lcom/estrongs/android/util/a0;->b()V

    return-void
.end method

.method static synthetic a(Les/mg;Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V
    .locals 0

    .line 7
    invoke-direct {p0, p1, p2}, Les/mg;->a(Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V

    return-void
.end method

.method static synthetic a(Les/mg;Les/mg$s;)V
    .locals 0

    .line 5
    invoke-direct {p0, p1}, Les/mg;->a(Les/mg$s;)V

    return-void
.end method

.method static synthetic a(Les/mg;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 6
    invoke-direct {p0, p1, p2}, Les/mg;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/io/File;Ljava/io/File;)V
    .locals 7

    .line 302
    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 303
    invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z

    .line 304
    :cond_0
    invoke-virtual {p1}, Ljava/io/File;->list()[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 305
    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_2

    aget-object v3, v0, v2

    .line 306
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, p1, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 307
    invoke-virtual {v4}, Ljava/io/File;->isFile()Z

    move-result v5

    if-eqz v5, :cond_1

    const/4 v5, 0x0

    .line 308
    :try_start_0
    new-instance v6, Ljava/io/FileInputStream;

    invoke-direct {v6, v4}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 309
    :try_start_1
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, p2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 310
    invoke-static {v6, v4}, Lcom/estrongs/fs/util/f;->a(Ljava/io/InputStream;Ljava/io/File;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 311
    invoke-static {v6}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    goto :goto_3

    :catchall_0
    move-exception p1

    move-object v5, v6

    goto :goto_1

    :catch_0
    move-object v5, v6

    goto :goto_2

    :catchall_1
    move-exception p1

    :goto_1
    invoke-static {v5}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    .line 312
    throw p1

    .line 313
    :catch_1
    :goto_2
    invoke-static {v5}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    :cond_1
    :goto_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 10

    const/4 v0, 0x1

    new-array v5, v0, [Ljava/lang/String;

    const/4 v9, 0x0

    aput-object p1, v5, v9

    new-array v3, v0, [Ljava/lang/String;

    const-string v1, "package_name"

    aput-object v1, v3, v9

    .line 195
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "app_folder_map_user"

    const-string v4, "folder=?"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 196
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 197
    invoke-interface {v1, v9}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 198
    :cond_0
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 199
    :cond_1
    invoke-direct {p0, p1, v2, v0}, Les/mg;->b(Ljava/lang/String;Ljava/lang/String;Z)V

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    aput-object p1, v1, v9

    if-eqz p2, :cond_2

    move-object v2, p2

    goto :goto_0

    :cond_2
    const-string v2, "-"

    :goto_0
    aput-object v2, v1, v0

    .line 200
    iget-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "INSERT OR REPLACE INTO app_folder_map_user (folder,package_name) VALUES(?,?)"

    invoke-virtual {v2, v3, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 201
    invoke-direct {p0, p1, p2, v0}, Les/mg;->a(Ljava/lang/String;Ljava/lang/String;Z)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 9

    if-eqz p1, :cond_7

    if-eqz p2, :cond_7

    const-string v0, "/"

    .line 210
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    .line 211
    invoke-virtual {p2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 212
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {p2, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_0
    move-object v1, p2

    .line 213
    :goto_0
    invoke-direct {p0, v1}, Les/mg;->p(Ljava/lang/String;)I

    move-result v3

    const/4 v4, -0x1

    if-ne v3, v4, :cond_1

    .line 214
    invoke-direct {p0, v1}, Les/mg;->k(Ljava/lang/String;)I

    move-result v3

    :cond_1
    const/4 v1, 0x0

    const/4 v5, 0x0

    :goto_1
    if-eq v1, v4, :cond_2

    add-int/lit8 v5, v5, 0x1

    add-int/lit8 v1, v1, 0x1

    .line 215
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v1

    goto :goto_1

    :cond_2
    const/4 v1, 0x0

    const/4 v6, 0x0

    :cond_3
    :goto_2
    if-eq v1, v4, :cond_6

    add-int/lit8 v6, v6, 0x1

    add-int/lit8 v1, v1, 0x1

    .line 216
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v1

    if-eq v1, v4, :cond_3

    .line 217
    invoke-virtual {p1, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 218
    invoke-direct {p0, v7}, Les/mg;->r(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_4

    goto :goto_3

    .line 219
    :cond_4
    invoke-direct {p0, v7}, Les/mg;->l(Ljava/lang/String;)I

    move-result v8

    if-ne v8, v4, :cond_5

    .line 220
    invoke-direct {p0, v7}, Les/mg;->j(Ljava/lang/String;)I

    move-result v8

    :cond_5
    sub-int v7, v5, v6

    .line 221
    invoke-direct {p0, v8, v3, v7, p3}, Les/mg;->a(IIIZ)V

    goto :goto_2

    .line 222
    :cond_6
    :goto_3
    invoke-static {}, Les/ru;->i()Les/ru;

    move-result-object p3

    invoke-virtual {p3, p1, p2}, Les/ru;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7
    return-void
.end method

.method private a(Landroid/content/pm/PackageManager;Ljava/util/Collection;Ljava/lang/String;)Z
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/pm/PackageManager;",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/lang/String;",
            ")Z"
        }
    .end annotation

    .line 298
    invoke-interface {p2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :cond_0
    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 299
    invoke-virtual {v0, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_0

    :cond_1
    const-string v2, "-"

    .line 300
    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_2

    return v3

    .line 301
    :cond_2
    :try_start_0
    invoke-virtual {p1, v0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v0, :cond_0

    return v3

    :catch_0
    nop

    goto :goto_0

    :cond_3
    return v1
.end method

.method private static a(Ljava/io/InputStream;Ljava/lang/String;)Z
    .locals 5

    const/4 v0, 0x0

    .line 231
    :try_start_0
    new-instance v1, Ljava/util/zip/ZipInputStream;

    invoke-direct {v1, p0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V

    .line 232
    invoke-virtual {v1}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;

    move-result-object p0

    :goto_0
    const/4 v2, 0x1

    if-eqz p0, :cond_2

    .line 233
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 234
    invoke-virtual {v3}, Ljava/io/File;->mkdir()Z

    .line 235
    invoke-virtual {p0}, Ljava/util/zip/ZipEntry;->isDirectory()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 236
    invoke-virtual {p0}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;

    move-result-object p0

    .line 237
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v2

    invoke-virtual {p0, v0, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    .line 238
    new-instance v2, Ljava/io/File;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v2, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 239
    invoke-virtual {v2}, Ljava/io/File;->mkdir()Z

    goto :goto_2

    .line 240
    :cond_0
    new-instance v2, Ljava/io/File;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v2, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 241
    invoke-virtual {v2}, Ljava/io/File;->createNewFile()Z

    .line 242
    new-instance p0, Ljava/io/FileOutputStream;

    invoke-direct {p0, v2}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 243
    :goto_1
    invoke-virtual {v1}, Ljava/util/zip/ZipInputStream;->read()I

    move-result v2

    const/4 v3, -0x1

    if-eq v2, v3, :cond_1

    .line 244
    invoke-virtual {p0, v2}, Ljava/io/FileOutputStream;->write(I)V

    goto :goto_1

    .line 245
    :cond_1
    invoke-virtual {p0}, Ljava/io/FileOutputStream;->close()V

    .line 246
    :goto_2
    invoke-virtual {v1}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;

    move-result-object p0

    goto :goto_0

    .line 247
    :cond_2
    invoke-virtual {v1}, Ljava/util/zip/ZipInputStream;->close()V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return v2

    :catch_0
    move-exception p0

    .line 248
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_3

    :catch_1
    move-exception p0

    .line 249
    invoke-virtual {p0}, Ljava/io/FileNotFoundException;->printStackTrace()V

    :goto_3
    return v0
.end method

.method private static b(Landroid/graphics/BitmapFactory$Options;I)I
    .locals 3

    .line 49
    iget v0, p0, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 50
    iget p0, p0, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 51
    div-int v1, v0, p1

    .line 52
    div-int v2, p0, p1

    .line 53
    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    const/4 v2, 0x1

    if-gt v1, v2, :cond_0

    return v2

    :cond_0
    if-le v1, v2, :cond_1

    if-le v0, p1, :cond_1

    .line 54
    div-int/2addr v0, v1

    if-ge v0, p1, :cond_1

    add-int/lit8 v1, v1, -0x1

    :cond_1
    if-le v1, v2, :cond_2

    if-le p0, p1, :cond_2

    .line 55
    div-int/2addr p0, v1

    if-ge p0, p1, :cond_2

    add-int/lit8 v1, v1, -0x1

    :cond_2
    if-gt v1, v2, :cond_3

    return v2

    :cond_3
    return v1
.end method

.method private b(Ljava/lang/String;I)I
    .locals 10

    const/4 v0, 0x1

    new-array v3, v0, [Ljava/lang/String;

    const-string v1, "value"

    const/4 v9, 0x0

    aput-object v1, v3, v9

    new-array v5, v0, [Ljava/lang/String;

    aput-object p1, v5, v9

    const/4 p1, 0x0

    .line 31
    :try_start_0
    iget-object v1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "config"

    const-string v4, "key=?"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 32
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 33
    invoke-interface {p1, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    if-eqz p1, :cond_1

    .line 34
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    goto :goto_1

    :catchall_0
    move-exception p2

    goto :goto_2

    :catch_0
    move-exception v0

    .line 35
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p1, :cond_1

    goto :goto_0

    :cond_1
    :goto_1
    return p2

    :goto_2
    if-eqz p1, :cond_2

    .line 36
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 37
    :cond_2
    goto :goto_4

    :goto_3
    throw p2

    :goto_4
    goto :goto_3
.end method

.method static synthetic b(Les/mg;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/mg;->h()V

    return-void
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 6

    if-eqz p1, :cond_4

    if-eqz p2, :cond_4

    const-string v0, "/"

    .line 5
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 6
    invoke-virtual {p2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 7
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {p2, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_0
    move-object v1, p2

    .line 8
    :goto_0
    invoke-direct {p0, v1}, Les/mg;->p(Ljava/lang/String;)I

    move-result v1

    const/4 v3, -0x1

    if-ne v1, v3, :cond_1

    return-void

    :cond_1
    const/4 v4, 0x0

    :cond_2
    :goto_1
    if-eq v4, v3, :cond_3

    add-int/lit8 v4, v4, 0x1

    .line 9
    invoke-virtual {p1, v0, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v4

    if-eq v4, v3, :cond_2

    .line 10
    invoke-virtual {p1, v2, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    .line 11
    invoke-direct {p0, v5}, Les/mg;->l(Ljava/lang/String;)I

    move-result v5

    if-eq v5, v3, :cond_2

    .line 12
    invoke-direct {p0, v5, v1, p3}, Les/mg;->a(IIZ)V

    goto :goto_1

    .line 13
    :cond_3
    invoke-static {}, Les/ru;->i()Les/ru;

    move-result-object p3

    invoke-virtual {p3, p1, p2}, Les/ru;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    return-void
.end method

.method private b(Landroid/content/pm/PackageInfo;)Z
    .locals 2

    .line 2
    invoke-direct {p0, p1}, Les/mg;->a(Landroid/content/pm/PackageInfo;)Ljava/lang/String;

    move-result-object v0

    .line 3
    iget-object p1, p1, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-virtual {p0, p1}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 4
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private c(Landroid/content/pm/PackageInfo;)V
    .locals 1

    .line 15
    invoke-direct {p0, p1}, Les/mg;->a(Landroid/content/pm/PackageInfo;)Ljava/lang/String;

    move-result-object p1

    .line 16
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 17
    invoke-virtual {v0}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/util/f;->m(Ljava/lang/String;)Z

    .line 18
    :try_start_0
    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 19
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V

    :goto_0
    return-void
.end method

.method private c(Ljava/lang/String;I)V
    .locals 2

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    aput-object p1, v0, v1

    .line 38
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const/4 p2, 0x1

    aput-object p1, v0, p2

    .line 39
    iget-object p1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const-string p2, "INSERT OR REPLACE INTO config(key,value) VALUES(?,?)"

    invoke-virtual {p1, p2, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    return-void
.end method

.method private e()I
    .locals 2

    const-string v0, "app_folder_map_version"

    const v1, 0x5f5e100

    .line 21
    invoke-direct {p0, v0, v1}, Les/mg;->a(Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public static f()Les/mg;
    .locals 1

    .line 1
    sget-object v0, Les/mg;->o:Les/mg;

    return-object v0
.end method

.method private f(Lcom/estrongs/fs/g;)Ljava/lang/String;
    .locals 4

    const-string v0, "/"

    const/4 v1, 0x0

    .line 2
    :try_start_0
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_0

    return-object v1

    .line 3
    :cond_0
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->K1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 5
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->L(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_1

    move-object p1, v3

    .line 6
    :cond_1
    invoke-virtual {v2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 7
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 8
    :cond_2
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object p1

    :catch_0
    return-object v1
.end method

.method private g()V
    .locals 4

    const-string v0, "ver"

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->A0()Z

    move-result v1

    if-nez v1, :cond_1

    .line 8
    :try_start_0
    new-instance v1, Ljava/io/File;

    sget-object v2, Les/mg;->q:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 9
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 10
    new-instance v2, Ljava/io/File;

    sget-object v3, Les/mg;->r:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 11
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_0

    .line 12
    invoke-virtual {v1, v2}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 13
    invoke-direct {p0, v1, v2}, Les/mg;->a(Ljava/io/File;Ljava/io/File;)V

    .line 14
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v1, v0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v2, v0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-direct {p0, v3, v1}, Les/mg;->a(Ljava/io/File;Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 15
    :catchall_0
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->d(Z)V

    :cond_1
    return-void
.end method

.method private h()V
    .locals 5

    .line 4
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    return-void

    .line 5
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/appinfo.db"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/pop/a;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 7
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 8
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    const/4 v4, 0x0

    if-nez v3, :cond_1

    .line 9
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 10
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 11
    invoke-virtual {v3, v2}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 12
    :try_start_0
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v3}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 13
    :try_start_1
    invoke-static {v1, v2}, Lcom/estrongs/fs/util/f;->a(Ljava/io/InputStream;Ljava/io/File;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    goto :goto_0

    :catchall_0
    move-object v1, v4

    .line 14
    :catchall_1
    :goto_0
    invoke-static {v1}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    .line 15
    :cond_1
    :try_start_2
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_2

    const/4 v1, 0x0

    .line 17
    invoke-static {v0, v4, v1}, Landroid/database/sqlite/SQLiteDatabase;->openDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iput-object v1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    goto :goto_1

    .line 18
    :cond_2
    invoke-static {v0, v4}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iput-object v1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    goto :goto_1

    .line 19
    :catchall_2
    :try_start_3
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 20
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_3

    .line 21
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 22
    :cond_3
    invoke-static {v0, v4}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    :goto_1
    const-string v0, "CREATE TABLE IF NOT EXISTS installed_app_info(package VARCHAR PRIMARY KEY  NOT NULL , app_name VARCHAR NOT NULL)"

    const-string v1, "CREATE TABLE IF NOT EXISTS config(key VARCHAR PRIMARY KEY NOT NULL, value VARCHAR NOT  NULL)"

    .line 23
    iget-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 24
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_3

    goto :goto_2

    :catchall_3
    nop

    .line 25
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_4

    .line 26
    :try_start_4
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_4

    .line 27
    :catchall_4
    :cond_4
    iput-object v4, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    :goto_2
    return-void
.end method

.method private i()V
    .locals 7

    .line 3
    iget-boolean v0, p0, Les/mg;->n:Z

    if-nez v0, :cond_2

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ne v0, v1, :cond_2

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "app_folder"

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/pop/FexApplication;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v2, "logo_repaired"

    .line 5
    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    const/4 v4, 0x1

    if-nez v3, :cond_1

    .line 6
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/Application;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v3

    iget-object v3, v3, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    invoke-virtual {v5}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    invoke-virtual {v5, v3, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v3

    iget v3, v3, Landroid/content/pm/PackageInfo;->versionCode:I

    const/16 v5, 0xde

    if-lt v3, v5, :cond_1

    const/16 v5, 0xe1

    if-gt v3, v5, :cond_1

    .line 8
    new-instance v3, Ljava/io/File;

    sget-object v5, Les/mg;->s:Ljava/lang/String;

    invoke-direct {v3, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 9
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v5

    if-eqz v5, :cond_0

    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_0

    .line 10
    invoke-virtual {v3}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 11
    array-length v5, v3

    :goto_0
    if-ge v1, v5, :cond_0

    aget-object v6, v3, v1

    .line 12
    invoke-virtual {v6}, Ljava/io/File;->delete()Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 13
    :cond_0
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 14
    invoke-interface {v0, v2, v4}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 15
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 16
    :catch_0
    :cond_1
    iput-boolean v4, p0, Les/mg;->n:Z

    :cond_2
    return-void
.end method

.method private j(Ljava/lang/String;)I
    .locals 3

    .line 1
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    const-string v1, "folder"

    .line 2
    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v1, "folder_table"

    const/4 v2, 0x0

    invoke-virtual {p1, v1, v2, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    move-result-wide v0

    long-to-int p1, v0

    return p1
.end method

.method private j()V
    .locals 11

    .line 4
    invoke-direct {p0}, Les/mg;->g()V

    const-string v0, "installedSaved"

    .line 5
    iget-object v1, p0, Les/mg;->m:Ljava/lang/Object;

    monitor-enter v1

    const/4 v2, 0x0

    .line 6
    :try_start_0
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v3, :cond_0

    .line 7
    invoke-direct {p0}, Les/mg;->h()V

    .line 8
    :cond_0
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_3

    if-nez v3, :cond_2

    .line 9
    :try_start_1
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_1

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_6

    if-eqz v0, :cond_1

    .line 10
    :try_start_2
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_6

    goto :goto_0

    .line 11
    :catch_0
    :try_start_3
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 12
    :try_start_4
    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    goto :goto_0

    :catchall_0
    move-exception v0

    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 13
    throw v0

    .line 14
    :cond_1
    :goto_0
    monitor-exit v1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_6

    return-void

    :cond_2
    const/4 v3, 0x0

    .line 15
    :try_start_5
    invoke-direct {p0, v0, v3}, Les/mg;->b(Ljava/lang/String;I)I

    move-result v4
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4
    .catchall {:try_start_5 .. :try_end_5} :catchall_3

    const/4 v5, 0x1

    if-ne v4, v5, :cond_4

    .line 16
    :try_start_6
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_6

    if-eqz v0, :cond_3

    .line 17
    :try_start_7
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_1
    .catchall {:try_start_7 .. :try_end_7} :catchall_6

    goto :goto_1

    .line 18
    :catch_1
    :try_start_8
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    .line 19
    :try_start_9
    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    goto :goto_1

    :catchall_1
    move-exception v0

    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 20
    throw v0

    .line 21
    :cond_3
    :goto_1
    monitor-exit v1
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_6

    return-void

    .line 22
    :cond_4
    :try_start_a
    new-instance v4, Landroid/content/ContentValues;

    invoke-direct {v4}, Landroid/content/ContentValues;-><init>()V

    .line 23
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v6

    invoke-virtual {v6}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    const/16 v7, 0x2000

    .line 24
    invoke-static {v7}, Lcom/estrongs/android/pop/FexApplication;->a(I)Ljava/util/List;

    move-result-object v7

    .line 25
    iget-object v8, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v8}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V

    .line 26
    invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :goto_2
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_6

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/content/pm/ApplicationInfo;

    .line 27
    iget v9, v8, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/2addr v9, v5

    if-lez v9, :cond_5

    goto :goto_2

    .line 28
    :cond_5
    iget-object v9, v8, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v6, v9, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v9

    invoke-virtual {v6, v9}, Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;

    move-result-object v9

    invoke-interface {v9}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v9

    .line 29
    invoke-virtual {v4}, Landroid/content/ContentValues;->clear()V

    const-string v10, "package"

    .line 30
    iget-object v8, v8, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v4, v10, v8}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v8, "app_name"

    .line 31
    invoke-virtual {v4, v8, v9}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 32
    iget-object v8, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const-string v9, "installed_app_info"

    invoke-virtual {v8, v9, v2, v4}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    goto :goto_2

    .line 33
    :cond_6
    invoke-direct {p0, v0, v5}, Les/mg;->c(Ljava/lang/String;I)V

    .line 34
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_4
    .catchall {:try_start_a .. :try_end_a} :catchall_3

    .line 35
    :try_start_b
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_8

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v0
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_6

    if-eqz v0, :cond_8

    .line 36
    :try_start_c
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_2
    .catchall {:try_start_c .. :try_end_c} :catchall_6

    goto :goto_5

    .line 37
    :catch_2
    :try_start_d
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_2

    .line 38
    :goto_3
    :try_start_e
    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    goto :goto_5

    :catchall_2
    move-exception v0

    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 39
    throw v0

    :catchall_3
    move-exception v0

    .line 40
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v3, :cond_7

    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v3

    if-eqz v3, :cond_7

    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v3
    :try_end_e
    .catchall {:try_start_e .. :try_end_e} :catchall_6

    if-eqz v3, :cond_7

    .line 41
    :try_start_f
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_3
    .catchall {:try_start_f .. :try_end_f} :catchall_6

    goto :goto_4

    .line 42
    :catch_3
    :try_start_10
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v3}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_10
    .catchall {:try_start_10 .. :try_end_10} :catchall_4

    .line 43
    :try_start_11
    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    goto :goto_4

    :catchall_4
    move-exception v0

    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 44
    throw v0

    .line 45
    :cond_7
    :goto_4
    throw v0

    .line 46
    :catch_4
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_8

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z

    move-result v0
    :try_end_11
    .catchall {:try_start_11 .. :try_end_11} :catchall_6

    if-eqz v0, :cond_8

    .line 47
    :try_start_12
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_5
    .catchall {:try_start_12 .. :try_end_12} :catchall_6

    goto :goto_5

    .line 48
    :catch_5
    :try_start_13
    iget-object v0, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_13
    .catchall {:try_start_13 .. :try_end_13} :catchall_5

    goto :goto_3

    :catchall_5
    move-exception v0

    .line 49
    :try_start_14
    iput-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    .line 50
    throw v0

    .line 51
    :cond_8
    :goto_5
    monitor-exit v1

    return-void

    :catchall_6
    move-exception v0

    monitor-exit v1
    :try_end_14
    .catchall {:try_start_14 .. :try_end_14} :catchall_6

    goto :goto_7

    :goto_6
    throw v0

    :goto_7
    goto :goto_6
.end method

.method private k(Ljava/lang/String;)I
    .locals 3

    .line 1
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    const-string v1, "package"

    .line 2
    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v1, "package_table"

    const/4 v2, 0x0

    invoke-virtual {p1, v1, v2, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    move-result-wide v0

    long-to-int p1, v0

    return p1
.end method

.method private l(Ljava/lang/String;)I
    .locals 10

    const/4 v0, 0x1

    new-array v5, v0, [Ljava/lang/String;

    const/4 v9, 0x0

    aput-object p1, v5, v9

    new-array v3, v0, [Ljava/lang/String;

    const-string p1, "id"

    aput-object p1, v3, v9

    .line 1
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "folder_table"

    const-string v4, "folder=? COLLATE NOCASE"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    const/4 v0, -0x1

    if-eqz p1, :cond_1

    .line 2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    invoke-interface {p1, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 4
    :cond_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_1
    return v0
.end method

.method private m(Ljava/lang/String;)Les/mg$l;
    .locals 3

    .line 1
    sget-object v0, Les/mg;->p:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/mg$l;

    .line 2
    iget-boolean v2, v1, Les/mg$l;->d:Z

    if-nez v2, :cond_1

    .line 3
    iget-object v2, v1, Les/mg$l;->a:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1

    .line 4
    :cond_1
    iget-object v2, v1, Les/mg$l;->a:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1

    :cond_2
    const/4 p1, 0x0

    return-object p1
.end method

.method private final n(Ljava/lang/String;)Les/mg$k;
    .locals 1

    .line 1
    iget-object v0, p0, Les/mg;->b:Landroid/util/LruCache;

    invoke-virtual {v0, p1}, Landroid/util/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/mg$k;

    return-object p1
.end method

.method private o(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/d;
    .locals 3

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 1
    :cond_0
    iget-object v0, p0, Les/mg;->c:Landroid/util/LruCache;

    invoke-virtual {v0, p1}, Landroid/util/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 2
    instance-of v1, v0, Lcom/estrongs/fs/impl/local/d;

    if-nez v1, :cond_1

    .line 3
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 5
    new-instance v0, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v0, v1}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    .line 6
    iget-object v1, p0, Les/mg;->c:Landroid/util/LruCache;

    invoke-virtual {v1, p1, v0}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 p1, 0x1

    .line 7
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string v1, "force_thumbnail"

    invoke-interface {v0, v1, p1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    :cond_1
    check-cast v0, Lcom/estrongs/fs/impl/local/d;

    return-object v0
.end method

.method private p(Ljava/lang/String;)I
    .locals 10

    const/4 v0, 0x1

    new-array v5, v0, [Ljava/lang/String;

    const/4 v9, 0x0

    aput-object p1, v5, v9

    new-array v3, v0, [Ljava/lang/String;

    const-string p1, "id"

    aput-object p1, v3, v9

    .line 1
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "package_table"

    const-string v4, "package=?"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    const/4 v0, -0x1

    if-eqz p1, :cond_1

    .line 2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    invoke-interface {p1, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 4
    :cond_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_1
    return v0
.end method

.method private q(Ljava/lang/String;)I
    .locals 13
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Les/mg;->c()V

    .line 3
    :cond_0
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    return v1

    .line 4
    :cond_1
    new-instance v0, Lorg/json/simple/parser/JSONParser;

    invoke-direct {v0}, Lorg/json/simple/parser/JSONParser;-><init>()V

    .line 5
    invoke-virtual {v0, p1}, Lorg/json/simple/parser/JSONParser;->parse(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    .line 6
    instance-of v0, p1, Lorg/json/simple/JSONArray;

    if-eqz v0, :cond_4

    .line 7
    check-cast p1, Lorg/json/simple/JSONArray;

    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v0, 0x0

    .line 8
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    .line 9
    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    .line 10
    move-object v3, v2

    check-cast v3, Ljava/util/Map;

    const-string v4, "id"

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    invoke-virtual {v3}, Ljava/lang/Long;->intValue()I

    move-result v5

    .line 11
    move-object v3, v2

    check-cast v3, Ljava/util/Map;

    const-string v4, "folder"

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 12
    move-object v4, v2

    check-cast v4, Ljava/util/Map;

    const-string v6, "package_name"

    invoke-interface {v4, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    move-object v7, v4

    check-cast v7, Ljava/lang/String;

    .line 13
    move-object v4, v2

    check-cast v4, Ljava/util/Map;

    const-string v6, "version"

    invoke-interface {v4, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->intValue()I

    move-result v11

    .line 14
    move-object v4, v2

    check-cast v4, Ljava/util/Map;

    const-string v6, "deleted"

    invoke-interface {v4, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->intValue()I

    move-result v9

    .line 15
    check-cast v2, Ljava/util/Map;

    const-string v4, "rate"

    invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->intValue()I

    move-result v10

    .line 16
    iget-object v2, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->lock()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    const/4 v2, 0x0

    .line 17
    :try_start_1
    iget-object v4, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v4}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V

    const/4 v12, 0x1

    if-ne v9, v12, :cond_2

    .line 18
    invoke-direct {p0, v5}, Les/mg;->a(I)V

    goto :goto_1

    :cond_2
    move-object v4, p0

    move-object v6, v3

    move v8, v11

    .line 19
    invoke-direct/range {v4 .. v10}, Les/mg;->a(ILjava/lang/String;Ljava/lang/String;III)V

    .line 20
    :goto_1
    new-instance v4, Landroid/content/ContentValues;

    invoke-direct {v4}, Landroid/content/ContentValues;-><init>()V

    const-string v5, "value"

    .line 21
    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    new-array v5, v12, [Ljava/lang/String;

    const-string v6, "app_folder_map_version"

    aput-object v6, v5, v1

    .line 22
    iget-object v6, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v7, "config"

    const-string v8, "key=?"

    invoke-virtual {v6, v7, v4, v8, v5}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 23
    iget-object v4, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v4}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    add-int/lit8 v0, v0, 0x1

    .line 24
    :try_start_2
    iget-object v4, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v4}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 25
    :try_start_3
    iget-object v2, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 26
    iget-object v2, p0, Les/mg;->b:Landroid/util/LruCache;

    invoke-virtual {v2, v3}, Landroid/util/LruCache;->remove(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    goto/16 :goto_0

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    .line 27
    :try_start_4
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    .line 28
    :try_start_5
    iput-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    .line 29
    throw p1

    :catchall_1
    move-exception p1

    .line 30
    iput-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    .line 31
    throw p1
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 32
    :goto_2
    :try_start_6
    iget-object v0, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 33
    throw p1
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2

    :catchall_2
    move-exception p1

    .line 34
    :try_start_7
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_1
    .catchall {:try_start_7 .. :try_end_7} :catchall_3

    .line 35
    :try_start_8
    iget-object v0, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 36
    throw p1
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_2

    :catchall_3
    move-exception p1

    goto :goto_3

    :catch_1
    move-exception p1

    .line 37
    :try_start_9
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_4

    .line 38
    :try_start_a
    iput-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    .line 39
    throw p1

    :catchall_4
    move-exception p1

    .line 40
    iput-object v2, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    .line 41
    throw p1
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_3

    .line 42
    :goto_3
    :try_start_b
    iget-object v0, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 43
    throw p1
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_2

    :cond_3
    move v1, v0

    :cond_4
    return v1

    :catch_2
    move-exception p1

    .line 44
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 45
    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method private r(Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/mg;->m(Ljava/lang/String;)Les/mg$l;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method


# virtual methods
.method public a(Landroid/content/Context;Lcom/estrongs/fs/g;Les/mg$n;)Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 103
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->g1()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {p2}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->U(Ljava/lang/String;)I

    move-result v0

    const/16 v1, 0x17

    if-ne v0, v1, :cond_0

    goto :goto_0

    .line 104
    :cond_0
    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p1, p2, p3}, Les/mg;->a(Landroid/content/Context;Ljava/lang/String;Les/mg$n;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Landroid/content/Context;Ljava/io/File;Les/mg$n;)Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 105
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->g1()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p2}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->U(Ljava/lang/String;)I

    move-result v0

    const/16 v1, 0x17

    if-ne v0, v1, :cond_0

    goto :goto_0

    .line 106
    :cond_0
    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p1, p2, p3}, Les/mg;->a(Landroid/content/Context;Ljava/lang/String;Les/mg$n;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;Les/mg$n;)Landroid/graphics/drawable/Drawable;
    .locals 6

    .line 110
    invoke-direct {p0, p2}, Les/mg;->n(Ljava/lang/String;)Les/mg$k;

    move-result-object p1

    const/4 p2, 0x0

    if-eqz p1, :cond_c

    .line 111
    iget v0, p1, Les/mg$k;->b:I

    if-eqz v0, :cond_c

    const/4 v1, 0x5

    if-ne v0, v1, :cond_0

    goto/16 :goto_2

    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 112
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    iget p1, p1, Les/mg$k;->c:I

    invoke-virtual {p2, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    .line 113
    :cond_1
    iget-object v0, p1, Les/mg$k;->a:Ljava/lang/String;

    invoke-virtual {p0, v0}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 114
    invoke-direct {p0, v0}, Les/mg;->o(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/d;

    move-result-object v0

    if-eqz v0, :cond_9

    .line 115
    iget-object v1, p0, Les/mg;->d:Landroidx/collection/LruCache;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroidx/collection/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_3

    .line 116
    iget p3, p1, Les/mg$k;->b:I

    const/4 v0, 0x4

    if-ne p3, v0, :cond_2

    .line 117
    invoke-static {v1}, Lcom/estrongs/android/util/c;->a(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    .line 118
    :cond_2
    invoke-virtual {v1, p2}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    goto :goto_0

    .line 119
    :cond_3
    iget-object v2, p0, Les/mg;->j:Ljava/util/HashMap;

    monitor-enter v2

    .line 120
    :try_start_0
    iget-object v3, p0, Les/mg;->j:Ljava/util/HashMap;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    if-eqz v3, :cond_5

    if-eqz p3, :cond_4

    .line 121
    invoke-interface {v3, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 122
    :cond_4
    monitor-exit v2

    return-object p2

    .line 123
    :cond_5
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    if-eqz p3, :cond_6

    .line 124
    invoke-interface {v3, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 125
    :cond_6
    iget-object v4, p0, Les/mg;->j:Ljava/util/HashMap;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 126
    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p3, :cond_7

    .line 127
    invoke-virtual {p3}, Les/mg$n;->b()Z

    move-result p3

    if-eqz p3, :cond_7

    .line 128
    new-instance p2, Landroid/os/ConditionVariable;

    invoke-direct {p2}, Landroid/os/ConditionVariable;-><init>()V

    .line 129
    invoke-virtual {p2}, Landroid/os/ConditionVariable;->close()V

    .line 130
    :cond_7
    new-instance p3, Les/mg$e;

    invoke-direct {p3, p0, v0, p2}, Les/mg$e;-><init>(Les/mg;Lcom/estrongs/fs/g;Landroid/os/ConditionVariable;)V

    invoke-static {p3}, Lcom/estrongs/android/util/o;->b(Ljava/lang/Runnable;)V

    if-eqz p2, :cond_8

    .line 131
    invoke-virtual {p2}, Landroid/os/ConditionVariable;->block()V

    .line 132
    iget-object p2, p0, Les/mg;->d:Landroidx/collection/LruCache;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroidx/collection/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Landroid/graphics/drawable/Drawable;

    goto :goto_1

    :cond_8
    :goto_0
    move-object p2, v1

    goto :goto_1

    :catchall_0
    move-exception p1

    .line 133
    :try_start_1
    monitor-exit v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1

    :cond_9
    :goto_1
    if-eqz p2, :cond_c

    .line 134
    iget p3, p1, Les/mg$k;->b:I

    const/4 v0, 0x3

    const/4 v1, 0x6

    if-eq p3, v0, :cond_a

    if-ne p3, v1, :cond_c

    .line 135
    :cond_a
    new-instance p3, Les/mg$o;

    invoke-direct {p3, p2}, Les/mg$o;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 136
    iget p1, p1, Les/mg$k;->b:I

    if-ne p1, v1, :cond_b

    .line 137
    invoke-static {p3}, Lcom/estrongs/android/util/c;->a(Landroid/graphics/drawable/Drawable;)V

    :cond_b
    move-object p2, p3

    :cond_c
    :goto_2
    return-object p2
.end method

.method public a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Les/mg$k;
    .locals 2

    const/4 v0, 0x0

    if-nez p2, :cond_0

    return-object v0

    :cond_0
    const/4 v1, 0x0

    .line 100
    :try_start_0
    invoke-virtual {p1, p2, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 101
    invoke-direct {p0, p1, v1}, Les/mg;->a(Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V

    .line 102
    new-instance p1, Les/mg$k;

    const/4 v1, 0x2

    invoke-direct {p1, p2, v1}, Les/mg$k;-><init>(Ljava/lang/String;I)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p1

    :catch_0
    :cond_1
    return-object v0
.end method

.method public a(Lcom/estrongs/fs/g;Ljava/lang/String;)Les/mg$k;
    .locals 22

    move-object/from16 v1, p0

    .line 23
    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->b()Z

    move-result v0

    const/4 v2, 0x0

    if-nez v0, :cond_0

    return-object v2

    :cond_0
    if-nez p2, :cond_1

    .line 24
    invoke-direct/range {p0 .. p1}, Les/mg;->f(Lcom/estrongs/fs/g;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_1
    move-object/from16 v0, p2

    :goto_0
    if-nez v0, :cond_2

    return-object v2

    :cond_2
    const-string v3, "/"

    .line 25
    invoke-virtual {v0, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    const/4 v5, 0x1

    const/4 v6, 0x0

    if-eqz v4, :cond_3

    .line 26
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    sub-int/2addr v4, v5

    invoke-virtual {v0, v6, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 27
    :cond_3
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    const/4 v7, 0x4

    const/4 v8, -0x1

    const/16 v9, 0xe

    if-le v4, v9, :cond_6

    const-string v4, "/Android/data/"

    invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 28
    invoke-virtual {v0, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    .line 29
    invoke-virtual {v4, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_4

    .line 30
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v9

    sub-int/2addr v9, v5

    invoke-virtual {v4, v6, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    .line 31
    invoke-virtual {v4, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    if-eq v3, v8, :cond_4

    move-object v4, v2

    :cond_4
    if-eqz v4, :cond_6

    .line 32
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    .line 33
    invoke-virtual {v1, v3, v4}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Les/mg$k;

    move-result-object v3

    if-nez v3, :cond_5

    .line 34
    invoke-virtual {v1, v4}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 35
    new-instance v10, Ljava/io/File;

    invoke-direct {v10, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 36
    invoke-virtual {v10}, Ljava/io/File;->exists()Z

    move-result v9

    if-eqz v9, :cond_5

    .line 37
    new-instance v3, Les/mg$k;

    invoke-direct {v3, v4, v7}, Les/mg$k;-><init>(Ljava/lang/String;I)V

    :cond_5
    if-eqz v3, :cond_7

    .line 38
    iget-object v0, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2, v3}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v3

    :cond_6
    move-object v3, v2

    .line 39
    :cond_7
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    .line 40
    new-instance v9, Ljava/util/LinkedList;

    invoke-direct {v9}, Ljava/util/LinkedList;-><init>()V

    new-array v15, v5, [Ljava/lang/String;

    const-string v10, "package_name"

    aput-object v10, v15, v6

    new-array v14, v5, [Ljava/lang/String;

    aput-object v0, v14, v6

    .line 41
    iget-object v10, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v10, :cond_14

    .line 42
    iget-object v10, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v10}, Ljava/util/concurrent/locks/Lock;->lock()V

    .line 43
    :try_start_0
    invoke-direct {v1, v0}, Les/mg;->m(Ljava/lang/String;)Les/mg$l;

    move-result-object v10

    if-eqz v10, :cond_8

    .line 44
    new-instance v0, Les/mg$k;

    iget v8, v10, Les/mg$l;->b:I

    invoke-direct {v0, v8, v5}, Les/mg$k;-><init>(II)V

    .line 45
    iget-object v8, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v10, v0}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_5
    .catchall {:try_start_0 .. :try_end_0} :catchall_3

    .line 46
    iget-object v2, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-object v0

    .line 47
    :cond_8
    :try_start_1
    iget-object v10, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v11, "app_folder_map_user"

    const-string v13, "folder=? COLLATE NOCASE"

    const/16 v16, 0x0

    const/16 v17, 0x0

    const/16 v18, 0x0

    move-object v12, v15

    move-object/from16 v19, v14

    move-object/from16 v20, v15

    move-object/from16 v15, v16

    move-object/from16 v16, v17

    move-object/from16 v17, v18

    invoke-virtual/range {v10 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_5
    .catchall {:try_start_1 .. :try_end_1} :catchall_3

    if-eqz v10, :cond_c

    move-object v11, v2

    .line 48
    :goto_1
    :try_start_2
    invoke-interface {v10}, Landroid/database/Cursor;->moveToNext()Z

    move-result v12

    if-eqz v12, :cond_b

    .line 49
    invoke-interface {v10, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    const-string v13, "-"

    .line 50
    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_a

    .line 51
    iget-object v2, v1, Les/mg;->e:Les/mg$k;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 52
    :try_start_3
    iget-object v0, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3, v2}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v10, :cond_9

    .line 53
    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    .line 54
    :cond_9
    iget-object v0, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-object v2

    :catch_0
    move-exception v0

    move-object v3, v2

    goto :goto_2

    :cond_a
    move-object v11, v12

    goto :goto_1

    .line 55
    :cond_b
    :try_start_4
    invoke-interface {v10}, Landroid/database/Cursor;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    move-object/from16 v18, v2

    move-object/from16 v21, v11

    goto :goto_3

    :catchall_0
    move-exception v0

    move-object v2, v10

    goto/16 :goto_a

    :catch_1
    move-exception v0

    :goto_2
    move-object v2, v10

    move-object/from16 v21, v11

    goto/16 :goto_8

    :cond_c
    move-object/from16 v21, v2

    move-object/from16 v18, v10

    .line 56
    :goto_3
    :try_start_5
    iget-object v10, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v11, "app_folder_map"

    const-string v13, "folder=? COLLATE NOCASE"

    const/4 v15, 0x0

    const/16 v16, 0x0

    const-string v17, "select_rate desc"

    move-object/from16 v12, v20

    move-object/from16 v14, v19

    invoke-virtual/range {v10 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    if-eqz v10, :cond_e

    .line 57
    :goto_4
    :try_start_6
    invoke-interface {v10}, Landroid/database/Cursor;->moveToNext()Z

    move-result v11

    if-eqz v11, :cond_d

    .line 58
    invoke-interface {v10, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    .line 59
    invoke-interface {v4, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_4

    .line 60
    :cond_d
    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    move-object v10, v2

    goto :goto_5

    :catch_2
    move-exception v0

    move-object v2, v10

    goto :goto_8

    .line 61
    :cond_e
    :goto_5
    invoke-direct {v1, v0}, Les/mg;->l(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v8, :cond_11

    const-string v8, "select b.package package_name from (select package package_id from folder_package_match_table where folder=? order by deep asc) a left join package_table b on a.package_id=b.id"

    new-array v11, v5, [Ljava/lang/String;

    .line 62
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    const-string v13, ""

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v11, v6

    .line 63
    iget-object v0, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0, v8, v11}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v8
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-eqz v8, :cond_10

    .line 64
    :goto_6
    :try_start_7
    invoke-interface {v8}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 65
    invoke-interface {v8, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 66
    invoke-interface {v9, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_6

    .line 67
    :cond_f
    invoke-interface {v8}, Landroid/database/Cursor;->close()V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_3
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    goto :goto_7

    :catchall_1
    move-exception v0

    move-object v2, v8

    goto :goto_a

    :catch_3
    move-exception v0

    move-object v2, v8

    goto :goto_8

    :cond_10
    move-object v2, v8

    goto :goto_7

    :cond_11
    move-object v2, v10

    :goto_7
    if-eqz v2, :cond_12

    goto :goto_9

    :catchall_2
    move-exception v0

    move-object/from16 v2, v18

    goto :goto_a

    :catch_4
    move-exception v0

    move-object/from16 v2, v18

    goto :goto_8

    :catchall_3
    move-exception v0

    goto :goto_a

    :catch_5
    move-exception v0

    move-object/from16 v21, v2

    .line 68
    :goto_8
    :try_start_8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_3

    if-eqz v2, :cond_12

    .line 69
    :goto_9
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 70
    :cond_12
    iget-object v0, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    move-object/from16 v2, v21

    goto :goto_b

    :goto_a
    if-eqz v2, :cond_13

    .line 71
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 72
    :cond_13
    iget-object v2, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 73
    throw v0

    .line 74
    :cond_14
    :goto_b
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v0

    if-nez v2, :cond_15

    const/4 v5, 0x0

    :cond_15
    add-int/2addr v0, v5

    invoke-interface {v9}, Ljava/util/List;->size()I

    move-result v5

    add-int/2addr v0, v5

    if-nez v0, :cond_16

    .line 75
    iget-object v0, v1, Les/mg;->e:Les/mg$k;

    .line 76
    iget-object v2, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_c

    .line 77
    :cond_16
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    if-eqz v2, :cond_17

    .line 78
    invoke-virtual {v1, v0, v2}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Les/mg$k;

    move-result-object v3

    :cond_17
    if-nez v3, :cond_19

    .line 79
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_18
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_19

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 80
    invoke-virtual {v1, v0, v3}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Les/mg$k;

    move-result-object v3

    if-eqz v3, :cond_18

    .line 81
    :cond_19
    invoke-interface {v9}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_1a
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_1c

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    .line 82
    invoke-virtual {v1, v0, v8}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/lang/String;)Les/mg$k;

    move-result-object v8

    if-eqz v8, :cond_1a

    if-nez v3, :cond_1b

    move-object v3, v8

    :cond_1b
    const/4 v0, 0x3

    .line 83
    iput v0, v3, Les/mg$k;->b:I

    :cond_1c
    if-eqz v3, :cond_1d

    .line 84
    iget-object v0, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2, v3}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v3

    :cond_1d
    if-eqz v2, :cond_1e

    .line 85
    invoke-interface {v4, v6, v2}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 86
    :cond_1e
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_20

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 87
    invoke-virtual {v1, v2}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 88
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 89
    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_1f

    .line 90
    new-instance v0, Les/mg$k;

    invoke-direct {v0, v2, v7}, Les/mg$k;-><init>(Ljava/lang/String;I)V

    .line 91
    iget-object v2, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v0

    .line 92
    :cond_20
    invoke-interface {v9}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_21
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_22

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 93
    invoke-virtual {v1, v2}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 94
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 95
    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_21

    .line 96
    new-instance v0, Les/mg$k;

    const/4 v3, 0x6

    invoke-direct {v0, v2, v3}, Les/mg$k;-><init>(Ljava/lang/String;I)V

    .line 97
    iget-object v2, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-object v0

    .line 98
    :cond_22
    iget-object v0, v1, Les/mg;->f:Les/mg$k;

    .line 99
    iget-object v2, v1, Les/mg;->b:Landroid/util/LruCache;

    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v1, Les/mg;->f:Les/mg$k;

    invoke-virtual {v2, v3, v4}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_c
    return-object v0
.end method

.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 12
    sget-object v1, Les/mg;->r:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ".png"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public a()V
    .locals 1

    .line 8
    iget-object v0, p0, Les/mg;->b:Landroid/util/LruCache;

    invoke-virtual {v0}, Landroid/util/LruCache;->evictAll()V

    .line 9
    iget-object v0, p0, Les/mg;->c:Landroid/util/LruCache;

    invoke-virtual {v0}, Landroid/util/LruCache;->evictAll()V

    .line 10
    iget-object v0, p0, Les/mg;->d:Landroidx/collection/LruCache;

    invoke-virtual {v0}, Landroidx/collection/LruCache;->evictAll()V

    return-void
.end method

.method public a(Landroid/content/Context;Lcom/estrongs/fs/g;Ljava/lang/String;ZLes/mg$t;)V
    .locals 9

    .line 250
    invoke-direct {p0, p2}, Les/mg;->f(Lcom/estrongs/fs/g;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_0

    return-void

    .line 251
    :cond_0
    new-instance v8, Les/mg$h;

    move-object v0, v8

    move-object v1, p0

    move-object v3, p3

    move-object v4, p2

    move-object v5, p5

    move-object v6, p1

    move v7, p4

    invoke-direct/range {v0 .. v7}, Les/mg$h;-><init>(Les/mg;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/fs/g;Les/mg$t;Landroid/content/Context;Z)V

    .line 252
    invoke-virtual {v8}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public a(Les/mg$t;)V
    .locals 4

    .line 151
    invoke-direct {p0}, Les/mg;->j()V

    .line 152
    invoke-static {}, Lcom/estrongs/android/util/f0;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 153
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->Q()J

    move-result-wide v0

    .line 154
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2, v0, v1}, Ljava/util/Date;-><init>(J)V

    .line 155
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    .line 156
    invoke-virtual {v2}, Ljava/util/Date;->getYear()I

    move-result v1

    invoke-virtual {v0}, Ljava/util/Date;->getYear()I

    move-result v3

    if-ne v1, v3, :cond_1

    invoke-virtual {v2}, Ljava/util/Date;->getMonth()I

    move-result v1

    invoke-virtual {v0}, Ljava/util/Date;->getMonth()I

    move-result v3

    if-ne v1, v3, :cond_1

    invoke-virtual {v2}, Ljava/util/Date;->getDay()I

    move-result v1

    invoke-virtual {v0}, Ljava/util/Date;->getDay()I

    move-result v0

    if-ne v1, v0, :cond_1

    return-void

    .line 157
    :cond_1
    invoke-static {}, Les/ru;->i()Les/ru;

    move-result-object v0

    invoke-virtual {v0}, Les/ru;->e()V

    .line 158
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_2

    .line 159
    invoke-virtual {p0}, Les/mg;->c()V

    .line 160
    :cond_2
    new-instance v0, Les/mg$f;

    invoke-direct {v0, p0, p1}, Les/mg$f;-><init>(Les/mg;Les/mg$t;)V

    .line 161
    invoke-direct {p0, v0}, Les/mg;->a(Les/mg$s;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/util/Collection;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 281
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    .line 282
    invoke-virtual {p0}, Les/mg;->c()V

    .line 283
    :cond_0
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_1

    return-void

    .line 284
    :cond_1
    invoke-interface {p2}, Ljava/util/Collection;->clear()V

    .line 285
    iget-object v0, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V

    const/4 v0, 0x0

    .line 286
    :try_start_0
    invoke-direct {p0, p1}, Les/mg;->l(Ljava/lang/String;)I

    move-result p1

    const/4 v1, -0x1

    if-eq p1, v1, :cond_4

    const-string v1, "select b.package package_name from (select package package_id from folder_package_match_table where folder=? order by deep asc) a left join package_table b on a.package_id=b.id"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    .line 287
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v3, 0x0

    aput-object p1, v2, v3

    .line 288
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {p1, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz p1, :cond_3

    .line 289
    :goto_0
    :try_start_1
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 290
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 291
    invoke-interface {p2, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 292
    :cond_2
    invoke-interface {p1}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception p2

    move-object v0, p1

    goto :goto_2

    :catch_0
    move-object v0, p1

    goto :goto_3

    :cond_3
    move-object v0, p1

    :cond_4
    :goto_1
    if-eqz v0, :cond_6

    goto :goto_4

    :catchall_1
    move-exception p2

    :goto_2
    if-eqz v0, :cond_5

    .line 293
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 294
    :cond_5
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 295
    throw p2

    :catch_1
    nop

    :goto_3
    if-eqz v0, :cond_6

    .line 296
    :goto_4
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 297
    :cond_6
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 272
    new-instance v0, Les/mg$i;

    invoke-direct {v0, p0, p1}, Les/mg$i;-><init>(Les/mg;Ljava/lang/String;)V

    invoke-virtual {p0, p1, p2, v0}, Les/mg;->a(Ljava/lang/String;Ljava/util/List;Les/mg$p;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/util/List;Les/mg$p;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Les/mg$p;",
            ")V"
        }
    .end annotation

    if-nez p2, :cond_0

    return-void

    .line 256
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->g1()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    .line 257
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 258
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->T1(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 259
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H0(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 260
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->z0(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 p1, 0x1

    :goto_1
    if-nez p1, :cond_3

    .line 261
    invoke-virtual {p0, p2}, Les/mg;->a(Ljava/util/List;)Z

    move-result p1

    :cond_3
    if-nez p1, :cond_4

    const/4 v0, 0x0

    :cond_4
    if-nez v0, :cond_5

    return-void

    :cond_5
    const/4 p1, 0x0

    .line 262
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :cond_6
    :goto_2
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_b

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 263
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/fs/l;->b()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->U(Ljava/lang/String;)I

    move-result v2

    const/16 v3, 0x17

    if-ne v2, v3, :cond_7

    goto :goto_2

    .line 264
    :cond_7
    instance-of v2, v0, Les/e20;

    if-eqz v2, :cond_8

    .line 265
    check-cast v0, Les/e20;

    iget-object v0, v0, Les/e20;->q:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    goto :goto_3

    .line 266
    :cond_8
    instance-of v2, v0, Lcom/estrongs/android/ui/topclassify/d;

    if-eqz v2, :cond_9

    .line 267
    invoke-virtual {p0, v0}, Les/mg;->b(Lcom/estrongs/fs/g;)Lcom/estrongs/fs/g;

    move-result-object v0

    .line 268
    :cond_9
    :goto_3
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v2}, Les/mg;->n(Ljava/lang/String;)Les/mg$k;

    move-result-object v2

    if-nez v2, :cond_6

    if-nez p1, :cond_a

    .line 269
    new-instance p1, Ljava/util/LinkedList;

    invoke-direct {p1}, Ljava/util/LinkedList;-><init>()V

    .line 270
    :cond_a
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_b
    if-eqz p1, :cond_c

    .line 271
    invoke-virtual {p0, p1, p3}, Les/mg;->a(Ljava/util/List;Les/mg$p;)V

    :cond_c
    return-void
.end method

.method public a(Ljava/util/List;Les/mg$p;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Les/mg$p;",
            ")V"
        }
    .end annotation

    if-eqz p1, :cond_1

    if-nez p2, :cond_0

    goto :goto_0

    .line 21
    :cond_0
    new-instance v0, Les/mg$d;

    invoke-direct {v0, p0, p1, p2}, Les/mg$d;-><init>(Les/mg;Ljava/util/List;Les/mg$p;)V

    .line 22
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_1
    :goto_0
    return-void
.end method

.method public a([Ljava/io/File;Les/mg$p;)V
    .locals 6

    if-eqz p1, :cond_6

    if-nez p2, :cond_0

    goto :goto_2

    .line 273
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->g1()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const/4 v0, 0x0

    .line 274
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_5

    aget-object v3, p1, v2

    .line 275
    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    .line 276
    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_4

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_2

    goto :goto_1

    .line 277
    :cond_2
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object v5

    invoke-direct {v5, v4}, Les/mg;->n(Ljava/lang/String;)Les/mg$k;

    move-result-object v4

    if-nez v4, :cond_4

    if-nez v0, :cond_3

    .line 278
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    .line 279
    :cond_3
    new-instance v4, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v4, v3}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_4
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_5
    if-eqz v0, :cond_6

    .line 280
    invoke-virtual {p0, v0, p2}, Les/mg;->a(Ljava/util/List;Les/mg$p;)V

    :cond_6
    :goto_2
    return-void
.end method

.method public a(Landroid/content/Context;Lcom/estrongs/fs/g;)Z
    .locals 2

    .line 107
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->g1()Z

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_2

    invoke-interface {p2}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/fs/l;->b()Z

    move-result p1

    if-eqz p1, :cond_2

    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->U(Ljava/lang/String;)I

    move-result p1

    const/16 v1, 0x17

    if-ne p1, v1, :cond_0

    goto :goto_0

    .line 108
    :cond_0
    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Les/mg;->n(Ljava/lang/String;)Les/mg$k;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 109
    iget p1, p1, Les/mg$k;->b:I

    const/4 p2, 0x4

    if-eq p1, p2, :cond_1

    const/4 p2, 0x6

    if-ne p1, p2, :cond_2

    :cond_1
    const/4 p1, 0x1

    return p1

    :cond_2
    :goto_0
    return v0
.end method

.method public a(Lcom/estrongs/fs/g;)Z
    .locals 1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 253
    :cond_0
    invoke-direct {p0, p1}, Les/mg;->f(Lcom/estrongs/fs/g;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return v0

    .line 254
    :cond_1
    invoke-direct {p0, p1}, Les/mg;->m(Ljava/lang/String;)Les/mg$l;

    move-result-object p1

    if-nez p1, :cond_2

    const/4 p1, 0x1

    return p1

    .line 255
    :cond_2
    iget-boolean p1, p1, Les/mg$l;->c:Z

    return p1
.end method

.method public a(Ljava/util/List;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)Z"
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p1, :cond_1

    .line 314
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x1

    if-ge v1, v2, :cond_0

    goto :goto_0

    .line 315
    :cond_0
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    .line 316
    invoke-virtual {p0, p1}, Les/mg;->c(Lcom/estrongs/fs/g;)Z

    move-result p1

    return p1

    :cond_1
    :goto_0
    return v0
.end method

.method public b(Lcom/estrongs/fs/g;)Lcom/estrongs/fs/g;
    .locals 2

    .line 82
    check-cast p1, Lcom/estrongs/android/ui/topclassify/d;

    .line 83
    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->o()I

    move-result v0

    const/16 v1, 0x14

    if-ne v0, v1, :cond_0

    .line 84
    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->q()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 85
    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->p()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 86
    new-instance v0, Lcom/estrongs/fs/m;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->p()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;)V

    return-object v0

    :cond_0
    return-object p1
.end method

.method public b(Ljava/lang/String;)Ljava/lang/String;
    .locals 12
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .line 38
    iget-object v0, p0, Les/mg;->m:Ljava/lang/Object;

    monitor-enter v0

    .line 39
    :try_start_0
    iget-object v1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v1, :cond_0

    .line 40
    invoke-direct {p0}, Les/mg;->h()V

    .line 41
    :cond_0
    iget-object v1, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v2, 0x0

    if-nez v1, :cond_1

    .line 42
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    return-object v2

    :cond_1
    const/4 v1, 0x1

    :try_start_1
    new-array v5, v1, [Ljava/lang/String;

    const-string v3, "app_name"

    const/4 v11, 0x0

    aput-object v3, v5, v11

    new-array v7, v1, [Ljava/lang/String;

    aput-object p1, v7, v11

    .line 43
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "installed_app_info"

    const-string v6, "package=?"

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz p1, :cond_2

    .line 44
    :try_start_2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 45
    invoke-interface {p1, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-object v2, v1

    goto :goto_0

    :catchall_0
    move-exception v1

    move-object v2, p1

    goto :goto_2

    :cond_2
    :goto_0
    if-eqz p1, :cond_4

    .line 46
    :goto_1
    :try_start_3
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    goto :goto_3

    :catchall_1
    move-exception v1

    :goto_2
    if-eqz v2, :cond_3

    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 47
    :cond_3
    throw v1

    :catch_0
    move-object p1, v2

    :catch_1
    if-eqz p1, :cond_4

    goto :goto_1

    .line 48
    :cond_4
    :goto_3
    monitor-exit v0

    return-object v2

    :catchall_2
    move-exception p1

    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public b()Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Les/ng;",
            ">;"
        }
    .end annotation

    .line 56
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 57
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    .line 58
    iget-object v2, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v2, :cond_0

    .line 59
    invoke-direct {p0}, Les/mg;->h()V

    .line 60
    :cond_0
    iget-object v3, p0, Les/mg;->l:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v2, 0x0

    const/4 v11, 0x1

    const/4 v12, 0x0

    if-eqz v3, :cond_4

    const/4 v4, 0x2

    :try_start_0
    new-array v5, v4, [Ljava/lang/String;

    const-string v4, "package"

    aput-object v4, v5, v12

    const-string v4, "app_name"

    aput-object v4, v5, v11

    const-string v4, "installed_app_info"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    .line 61
    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v3, :cond_2

    .line 62
    :cond_1
    :goto_0
    :try_start_1
    invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 63
    invoke-interface {v3, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 64
    invoke-interface {v3, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 65
    :try_start_2
    invoke-virtual {v1, v4, v12}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v6
    :try_end_2
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_1

    :catch_0
    move-object v6, v2

    :goto_1
    if-nez v6, :cond_1

    .line 66
    :try_start_3
    new-instance v6, Les/ng;

    invoke-virtual {p0, v4}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v5, v4, v7}, Les/ng;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    goto :goto_0

    :catch_1
    move-exception v4

    goto :goto_2

    :cond_2
    if-eqz v3, :cond_4

    goto :goto_3

    :catchall_0
    move-exception v0

    goto :goto_4

    :catch_2
    move-exception v4

    move-object v3, v2

    .line 67
    :goto_2
    :try_start_4
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    if-eqz v3, :cond_4

    .line 68
    :goto_3
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_5

    :catchall_1
    move-exception v0

    move-object v2, v3

    :goto_4
    if-eqz v2, :cond_3

    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 69
    :cond_3
    throw v0

    .line 70
    :cond_4
    :goto_5
    :try_start_5
    new-instance v3, Ljava/io/File;

    sget-object v4, Les/mg;->r:Ljava/lang/String;

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 71
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_8

    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-eqz v4, :cond_8

    .line 72
    invoke-virtual {v3}, Ljava/io/File;->list()[Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_8

    .line 73
    array-length v5, v4

    const/4 v6, 0x0

    :goto_6
    if-ge v6, v5, :cond_8

    aget-object v7, v4, v6

    .line 74
    new-instance v8, Ljava/io/File;

    invoke-direct {v8, v3, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 75
    invoke-virtual {v8}, Ljava/io/File;->isFile()Z

    move-result v8

    if-eqz v8, :cond_7

    const-string v8, ".png"

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_7

    .line 76
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v8

    add-int/lit8 v8, v8, -0x4

    invoke-virtual {v7, v12, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 77
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v8

    :cond_5
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_6

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Les/ng;

    .line 78
    iget-object v9, v9, Les/ng;->b:Ljava/lang/String;

    invoke-virtual {v9, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4

    if-eqz v9, :cond_5

    const/4 v8, 0x1

    goto :goto_7

    :cond_6
    const/4 v8, 0x0

    :goto_7
    if-nez v8, :cond_7

    .line 79
    :try_start_6
    invoke-virtual {v1, v7, v12}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v8
    :try_end_6
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4

    goto :goto_8

    :catch_3
    move-object v8, v2

    :goto_8
    if-nez v8, :cond_7

    .line 80
    :try_start_7
    new-instance v8, Les/ng;

    invoke-virtual {p0, v7}, Les/mg;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v7, v7, v9}, Les/ng;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v0, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4

    :cond_7
    add-int/lit8 v6, v6, 0x1

    goto :goto_6

    :catch_4
    move-exception v1

    .line 81
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_8
    return-object v0
.end method

.method b(Ljava/lang/String;Ljava/util/Collection;)V
    .locals 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 14
    invoke-interface {p2}, Ljava/util/Collection;->clear()V

    const/4 v0, 0x1

    new-array v9, v0, [Ljava/lang/String;

    const-string v1, "package_name"

    const/4 v10, 0x0

    aput-object v1, v9, v10

    .line 15
    iget-object v1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->lock()V

    const/4 v11, 0x0

    :try_start_0
    new-array v0, v0, [Ljava/lang/String;

    aput-object p1, v0, v10

    .line 16
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "app_folder_map_user"

    const-string v4, "folder=? COLLATE NOCASE"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v3, v9

    move-object v5, v0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz p1, :cond_1

    .line 17
    :goto_0
    :try_start_1
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 18
    invoke-interface {p1, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 19
    invoke-interface {p2, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 20
    :cond_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    move-object p1, v11

    goto :goto_1

    :catchall_0
    move-exception p2

    move-object v11, p1

    goto :goto_4

    :catch_0
    move-object v11, p1

    goto :goto_5

    .line 21
    :cond_1
    :goto_1
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "app_folder_map"

    const-string v4, "folder=? COLLATE NOCASE"

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v3, v9

    move-object v5, v0

    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 22
    :goto_2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 23
    invoke-interface {p1, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 24
    invoke-interface {p2, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 25
    :cond_2
    invoke-interface {p1}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3

    :cond_3
    move-object v11, p1

    :goto_3
    if-eqz v11, :cond_5

    goto :goto_6

    :catchall_1
    move-exception p2

    :goto_4
    if-eqz v11, :cond_4

    .line 26
    invoke-interface {v11}, Landroid/database/Cursor;->close()V

    .line 27
    :cond_4
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 28
    throw p2

    :catch_1
    nop

    :goto_5
    if-eqz v11, :cond_5

    .line 29
    :goto_6
    invoke-interface {v11}, Landroid/database/Cursor;->close()V

    .line 30
    :cond_5
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-void
.end method

.method c(Ljava/lang/String;)Ljava/util/Map;
    .locals 14
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    .line 20
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 21
    iget-object v1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->lock()V

    const/4 v1, 0x1

    const/4 v2, 0x0

    :try_start_0
    new-array v11, v1, [Ljava/lang/String;

    const-string v3, "folder"

    const/4 v12, 0x0

    aput-object v3, v11, v12

    new-array v13, v1, [Ljava/lang/String;

    aput-object p1, v13, v12

    .line 22
    iget-object v3, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "app_folder_map_user"

    const-string v6, "package_name=?"

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    move-object v5, v11

    move-object v7, v13

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz p1, :cond_1

    .line 23
    :goto_0
    :try_start_1
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 24
    invoke-interface {p1, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 25
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 26
    :cond_0
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    move-object p1, v2

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v2, p1

    goto :goto_4

    :catch_0
    move-object v2, p1

    goto :goto_5

    .line 27
    :cond_1
    :goto_1
    iget-object v3, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "app_folder_map"

    const-string v6, "package_name=?"

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    move-object v5, v11

    move-object v7, v13

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1

    if-eqz p1, :cond_4

    .line 28
    :goto_2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 29
    invoke-interface {p1, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 30
    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    goto :goto_2

    .line 31
    :cond_2
    invoke-static {v12}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_2

    .line 32
    :cond_3
    invoke-interface {p1}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3

    :cond_4
    move-object v2, p1

    :goto_3
    if-eqz v2, :cond_6

    goto :goto_6

    :catchall_1
    move-exception v0

    :goto_4
    if-eqz v2, :cond_5

    .line 33
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 34
    :cond_5
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 35
    throw v0

    :catch_1
    nop

    :goto_5
    if-eqz v2, :cond_6

    .line 36
    :goto_6
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    .line 37
    :cond_6
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-object v0
.end method

.method protected c()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V

    .line 3
    invoke-direct {p0}, Les/mg;->i()V

    .line 4
    :try_start_0
    new-instance v0, Ljava/io/File;

    sget-object v1, Les/mg;->t:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    .line 5
    invoke-virtual {p0}, Les/mg;->d()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :cond_1
    const/4 v0, 0x0

    .line 6
    :try_start_1
    sget-object v1, Les/mg;->t:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Landroid/database/sqlite/SQLiteDatabase;->openDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iput-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    .line 7
    :try_start_2
    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    .line 8
    :goto_0
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v1, :cond_2

    .line 9
    new-instance v1, Ljava/io/File;

    sget-object v2, Les/mg;->t:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 10
    invoke-virtual {p0}, Les/mg;->d()V

    .line 11
    sget-object v1, Les/mg;->t:Ljava/lang/String;

    invoke-static {v1, v0}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_1

    :catchall_1
    move-exception v0

    .line 12
    :try_start_3
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    .line 13
    :cond_2
    :goto_1
    iget-object v0, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    return-void

    :catchall_2
    move-exception v0

    iget-object v1, p0, Les/mg;->i:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 14
    throw v0
.end method

.method public c(Lcom/estrongs/fs/g;)Z
    .locals 2

    if-eqz p1, :cond_0

    .line 40
    instance-of v0, p1, Lcom/estrongs/android/ui/topclassify/d;

    if-eqz v0, :cond_0

    .line 41
    check-cast p1, Lcom/estrongs/android/ui/topclassify/d;

    .line 42
    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->o()I

    move-result v0

    const/16 v1, 0x14

    if-ne v0, v1, :cond_0

    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/d;->q()Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public d(Lcom/estrongs/fs/g;)Les/mg$k;
    .locals 1

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, p1, v0}, Les/mg;->a(Lcom/estrongs/fs/g;Ljava/lang/String;)Les/mg$k;

    move-result-object p1

    return-object p1
.end method

.method public d(Ljava/lang/String;)Ljava/util/List;
    .locals 17
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Les/mg$m;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    .line 5
    iget-object v0, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    .line 6
    invoke-virtual/range {p0 .. p0}, Les/mg;->c()V

    .line 7
    :cond_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 8
    iget-object v0, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V

    const/4 v4, 0x1

    const/4 v5, 0x0

    const/4 v6, 0x0

    :try_start_0
    new-array v0, v4, [Ljava/lang/String;

    const-string v7, "folder"

    aput-object v7, v0, v6

    new-array v15, v4, [Ljava/lang/String;

    aput-object v2, v15, v6

    .line 9
    iget-object v7, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v8, "app_folder_map_user"

    const-string v10, "package_name=?"

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    move-object v9, v0

    move-object v11, v15

    invoke-virtual/range {v7 .. v14}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v7
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    if-eqz v7, :cond_2

    .line 10
    :goto_0
    :try_start_1
    invoke-interface {v7}, Landroid/database/Cursor;->moveToNext()Z

    move-result v8

    if-eqz v8, :cond_1

    .line 11
    new-instance v8, Les/mg$m;

    invoke-direct {v8, v1}, Les/mg$m;-><init>(Les/mg;)V

    .line 12
    invoke-interface {v7, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Les/mg$m;->a:Ljava/lang/String;

    .line 13
    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 14
    :cond_1
    invoke-interface {v7}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-object/from16 v16, v5

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v5, v7

    goto/16 :goto_7

    :catch_0
    move-exception v0

    move-object v5, v7

    goto :goto_4

    :cond_2
    move-object/from16 v16, v7

    .line 15
    :goto_1
    :try_start_2
    iget-object v7, v1, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v8, "app_folder_map"

    const-string v10, "package_name=?"

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    move-object v9, v0

    move-object v11, v15

    invoke-virtual/range {v7 .. v14}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v7
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    if-eqz v7, :cond_5

    .line 16
    :goto_2
    :try_start_3
    invoke-interface {v7}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 17
    new-instance v0, Les/mg$m;

    invoke-direct {v0, v1}, Les/mg$m;-><init>(Les/mg;)V

    .line 18
    invoke-interface {v7, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v0, Les/mg$m;->a:Ljava/lang/String;

    .line 19
    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_3

    goto :goto_2

    .line 20
    :cond_3
    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 21
    :cond_4
    invoke-interface {v7}, Landroid/database/Cursor;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_3

    :cond_5
    move-object v5, v7

    :goto_3
    if-eqz v5, :cond_6

    goto :goto_5

    :catchall_1
    move-exception v0

    move-object/from16 v5, v16

    goto :goto_7

    :catch_1
    move-exception v0

    move-object/from16 v5, v16

    goto :goto_4

    :catchall_2
    move-exception v0

    goto :goto_7

    :catch_2
    move-exception v0

    .line 22
    :goto_4
    :try_start_4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    if-eqz v5, :cond_6

    .line 23
    :goto_5
    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 24
    :cond_6
    iget-object v0, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 25
    new-instance v0, Les/mg$m;

    invoke-direct {v0, v1}, Les/mg$m;-><init>(Les/mg;)V

    .line 26
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "/Android/data/"

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Les/mg$m;->a:Ljava/lang/String;

    .line 27
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_7
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_8

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/mg$m;

    .line 28
    invoke-virtual {v5, v0}, Les/mg$m;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    goto :goto_6

    :cond_8
    const/4 v4, 0x0

    :goto_6
    if-nez v4, :cond_9

    .line 29
    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_9
    return-object v3

    :goto_7
    if-eqz v5, :cond_a

    .line 30
    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 31
    :cond_a
    iget-object v2, v1, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 32
    goto :goto_9

    :goto_8
    throw v0

    :goto_9
    goto :goto_8
.end method

.method protected d()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    const-string v1, "folder_app.zip"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    .line 3
    sget-object v1, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-static {v0, v1}, Les/mg;->a(Ljava/io/InputStream;Ljava/lang/String;)Z

    return-void
.end method

.method public e(Lcom/estrongs/fs/g;)Les/mg$q;
    .locals 8

    .line 1
    invoke-direct {p0, p1}, Les/mg;->f(Lcom/estrongs/fs/g;)Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return-object v0

    .line 2
    :cond_0
    iget-object v1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v1, :cond_6

    .line 3
    iget-object v1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->lock()V

    const/4 v1, 0x1

    :try_start_0
    new-array v2, v1, [Ljava/lang/String;

    const/4 v3, 0x0

    aput-object p1, v2, v3

    .line 4
    iget-object p1, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "select package_name,select_rate from app_folder_map where select_rate > 0 and folder=? COLLATE NOCASE order by select_rate desc"

    invoke-virtual {p1, v4, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p1, :cond_2

    .line 5
    :try_start_1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 6
    :catch_0
    :cond_1
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 7
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 8
    invoke-interface {p1, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v5
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 9
    :try_start_2
    invoke-virtual {v2, v4, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v6

    if-eqz v6, :cond_1

    .line 10
    new-instance v6, Les/mg$q;

    invoke-direct {v6, p0}, Les/mg$q;-><init>(Les/mg;)V
    :try_end_2
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 11
    :try_start_3
    iput-object v4, v6, Les/mg$q;->a:Ljava/lang/String;

    .line 12
    iput v5, v6, Les/mg$q;->b:I
    :try_end_3
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    move-object v0, v6

    goto :goto_1

    :catch_1
    move-exception v0

    goto :goto_2

    :catch_2
    move-object v0, v6

    goto :goto_0

    :catch_3
    move-exception v1

    move-object v6, v0

    move-object v0, v1

    goto :goto_2

    :cond_2
    :goto_1
    if-eqz p1, :cond_3

    .line 13
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 14
    :cond_3
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    goto :goto_4

    :catchall_0
    move-exception p1

    move-object v7, v0

    move-object v0, p1

    move-object p1, v7

    goto :goto_3

    :catch_4
    move-exception p1

    move-object v6, v0

    move-object v0, p1

    move-object p1, v6

    .line 15
    :goto_2
    :try_start_4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    if-eqz p1, :cond_4

    .line 16
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 17
    :cond_4
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    move-object v0, v6

    goto :goto_4

    :catchall_1
    move-exception v0

    :goto_3
    if-eqz p1, :cond_5

    .line 18
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 19
    :cond_5
    iget-object p1, p0, Les/mg;->h:Ljava/util/concurrent/locks/Lock;

    invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 20
    throw v0

    :cond_6
    :goto_4
    return-object v0
.end method

.method public e(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 10
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Les/mg$r;",
            ">;"
        }
    .end annotation

    .line 22
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    .line 23
    invoke-virtual {p0}, Les/mg;->c()V

    .line 24
    :cond_0
    iget-object v0, p0, Les/mg;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    return-object v1

    .line 25
    :cond_1
    invoke-virtual {p0, p1}, Les/mg;->c(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    .line 26
    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_2

    return-object v1

    .line 27
    :cond_2
    new-instance v2, Ljava/util/HashSet;

    invoke-direct {v2}, Ljava/util/HashSet;-><init>()V

    .line 28
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    .line 29
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    .line 30
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_3
    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_5

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/Map$Entry;

    .line 31
    invoke-interface {v6}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    .line 32
    invoke-virtual {p0, v6, v2}, Les/mg;->b(Ljava/lang/String;Ljava/util/Collection;)V

    .line 33
    invoke-direct {p0, v3, v2, p1}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/util/Collection;Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_4

    .line 34
    invoke-interface {v4, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 35
    :cond_4
    invoke-virtual {p0, v6, v2}, Les/mg;->a(Ljava/lang/String;Ljava/util/Collection;)V

    .line 36
    invoke-direct {p0, v3, v2, p1}, Les/mg;->a(Landroid/content/pm/PackageManager;Ljava/util/Collection;Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_3

    .line 37
    invoke-interface {v4, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 38
    :cond_5
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 39
    invoke-interface {v0, v2}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 40
    :cond_6
    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_7

    return-object v1

    .line 41
    :cond_7
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object p1

    .line 42
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_8
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-eqz v2, :cond_c

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    .line 43
    invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 44
    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    .line 45
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    :cond_9
    :goto_2
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_8

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    const-string v8, "/"

    .line 46
    invoke-virtual {v7, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_a

    .line 47
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v8

    sub-int/2addr v8, v4

    invoke-virtual {v7, v3, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 48
    :cond_a
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 49
    new-instance v8, Ljava/io/File;

    invoke-direct {v8, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 50
    invoke-virtual {v8}, Ljava/io/File;->exists()Z

    move-result v9

    if-eqz v9, :cond_9

    invoke-virtual {v8}, Ljava/io/File;->isDirectory()Z

    move-result v8

    if-eqz v8, :cond_9

    if-nez v1, :cond_b

    .line 51
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 52
    :cond_b
    new-instance v8, Les/mg$r;

    invoke-direct {v8}, Les/mg$r;-><init>()V

    .line 53
    iput-object v7, v8, Les/mg$r;->a:Ljava/lang/String;

    .line 54
    iput-boolean v2, v8, Les/mg$r;->b:Z

    .line 55
    invoke-virtual {v1, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_c
    if-eqz v1, :cond_11

    .line 56
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-le p1, v4, :cond_11

    .line 57
    new-instance p1, Les/mg$j;

    invoke-direct {p1, p0}, Les/mg$j;-><init>(Les/mg;)V

    invoke-static {v1, p1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 58
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 59
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_d
    :goto_3
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_10

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/mg$r;

    .line 60
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_e
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_f

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/mg$r;

    .line 61
    iget-object v5, v5, Les/mg$r;->a:Ljava/lang/String;

    iget-object v6, v1, Les/mg$r;->a:Ljava/lang/String;

    invoke-static {v5, v6}, Lcom/estrongs/android/util/h0;->d(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_e

    const/4 v2, 0x1

    goto :goto_4

    :cond_f
    const/4 v2, 0x0

    :goto_4
    if-nez v2, :cond_d

    .line 62
    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 63
    :cond_10
    new-instance v0, Les/mg$a;

    invoke-direct {v0, p0}, Les/mg$a;-><init>(Les/mg;)V

    invoke-static {p1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    move-object v1, p1

    :cond_11
    return-object v1
.end method

.method public f(Ljava/lang/String;)V
    .locals 1
    .annotation build Landroidx/annotation/AnyThread;
    .end annotation

    .line 9
    new-instance v0, Les/mg$b;

    invoke-direct {v0, p0, p1}, Les/mg$b;-><init>(Les/mg;Ljava/lang/String;)V

    .line 10
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public g(Ljava/lang/String;)V
    .locals 2

    .line 1
    iget-object v0, p0, Les/mg;->b:Landroid/util/LruCache;

    invoke-virtual {v0}, Landroid/util/LruCache;->evictAll()V

    .line 2
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    const/4 v1, 0x0

    .line 3
    invoke-virtual {v0, p1, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 4
    invoke-direct {p0, v0, p1}, Les/mg;->a(Landroid/content/pm/PackageManager;Landroid/content/pm/PackageInfo;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    .line 5
    :cond_0
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_1

    const/4 v0, 0x1

    .line 6
    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->k(Z)V

    :cond_1
    return-void
.end method

.method public h(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object p1, p0, Les/mg;->b:Landroid/util/LruCache;

    invoke-virtual {p1}, Landroid/util/LruCache;->evictAll()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 v0, 0x1

    .line 3
    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->k(Z)V

    :cond_0
    return-void
.end method

.method protected i(Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->l(Ljava/lang/String;)V

    :cond_0
    return-void
.end method
